<template>
  <div class="banner">
    <el-carousel indicator-position="outside">
      <el-carousel-item v-for="item in img_list" :key="item">
        <img :src="item" alt="">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  name: "Banner",
  data(){
      return{
          img_list:[
              'https://img0.baidu.com/it/u=2907795045,1808007007&fm=26&fmt=auto&gp=0.jpg',
              'https://img0.baidu.com/it/u=4159244863,2905112469&fm=26&fmt=auto&gp=0.jpg',
              'https://img2.baidu.com/it/u=3004138504,349460422&fm=26&fmt=auto&gp=0.jpg',
              'https://img0.baidu.com/it/u=1836765659,776587132&fm=26&fmt=auto&gp=0.jpg',
              'https://img2.baidu.com/it/u=3968352071,1711927906&fm=26&fmt=auto&gp=0.jpg'
          ]
      }
  }
};
</script>

<style scoped>
.banner {
  width: 822px;
  height:300px;
  margin: 0 auto;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>


